﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using QLCHBANGIAY.BUSINESS;
using QLCHBANGIAY.DATA;

namespace QuanLyBanGiay
{
    public partial class ChitietSanpham : System.Web.UI.Page
    {
       public List<Product> sanpham = new List<Product>();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.Request.QueryString["id"] != null)
            {
               
                sanpham = ProductServices.Product_GetById(Page.Request.QueryString["id"]);
                string abc;
                //String text=

    //            String chuoi;
    //           chuoi+="  <div class='content_half float_l'>";
    //        <a rel="lightbox[portfolio]" href="images/product/10_l.jpg"><img src="images/product/10.jpg" alt="image"></a>
    //        </div>
    //<div class="content_half float_r">
    //            <table>
    //                <tbody><tr>
    //                    <td width="160">Price:</td>
    //                    <td>$100</td>
    //                </tr>
    //                <tr>
    //                    <td>Availability:</td>
    //                    <td>In Stock</td>
    //                </tr>
    //                <tr>
    //                    <td>Model:</td>
    //                    <td>Product 14</td>
    //                </tr>
    //                <tr>
    //                    <td>Manufacturer:</td>
    //                    <td>Apple</td>
    //                </tr>
    //                <tr>
    //                    <td>Quantity</td>
    //                    <td><input type="text" value="1" style="width: 20px; text-align: right"></td>
    //                </tr>
    //            </tbody></table>
    //            <div class="cleaner h20"></div>

    //            <a href="shoppingcart.html" class="addtocart"></a>

    //        </div>
    //<div class="cleaner h30"></div>
    //<h5>Product Description</h5>
    //<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur semper quam sit amet turpis rhoncus id venenatis tellus sollicitudin. Fusce ullamcorper, dolor non mollis pulvinar, turpis tortor commodo nisl, et semper lectus augue blandit tellus. Quisque id bibendum libero. Validate <a href="http://validator.w3.org/check?uri=referer" rel="nofollow">XHTML</a> &amp; <a href="http://jigsaw.w3.org/css-validator/check/referer" rel="nofollow">CSS</a>.</p>
    //<div class="cleaner h50"></div>

            }
            else
            { 
            }
        }
    }
}